package com.teame.readbaby.parser;

import java.util.List;

import org.json.JSONException;

import com.alibaba.fastjson.JSONObject;
import com.teame.readbaby.vo.HomeBannerInfo;

public class HomeListParser1 extends BaseParser<List<HomeBannerInfo>> {

	@Override
	public List<HomeBannerInfo> parseJSON(String paramString)
			throws JSONException {
		String result = checkResponse(paramString);
		if (result == null) {
			return null;
		}

		JSONObject jsonObject = JSONObject.parseObject(paramString);
		String jsonList = jsonObject.getString("home_banner");

		List<HomeBannerInfo> addressList = JSONObject.parseArray(
				jsonList, HomeBannerInfo.class);
		return addressList;
	}

}
